<?php
class Model_Restockorder extends ORM {
	
	public function rules() {
		return array(
			'quantity' => array(
				array('digit')
			),
		);
	}	
	
	protected $_belongs_to = array(
		'item' => array(
			'model' => 'inventoryitem',
			'foreign_key' => 'inventoryitem_id',
		),
	);
}